console.log('Webpack is working!');

// 简单的DOM操作
document.addEventListener('DOMContentLoaded', () => {
  const app = document.getElementById('app');
  if (app) {
    app.innerHTML = `
      <div style="text-align: center; padding: 2rem;">
        <h1>🎉 Webpack 配置成功！</h1>
        <p>这是一个使用 Webpack 构建的项目</p>
        <div style="margin-top: 2rem;">
          <button onclick="alert('Webpack 工作正常！')" style="padding: 0.5rem 1rem; background: #4a90e2; color: white; border: none; border-radius: 4px; cursor: pointer;">
            点击测试
          </button>
        </div>
      </div>
    `;
  }
}); 